首页> 外文OA文献 >Circular Reference Attributed Grammars - their Evaluation and Applications
【2h】

Circular Reference Attributed Grammars - their Evaluation and Applications

机译:循环参考归属语法 - 它们的评价和应用

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

This paper presents a combination of Reference Attributed Grammars (RAGs) and Circular Attribute Grammars (CAGs). While RAGs allow the direct and easy specification of non-locally dependent information, CAGs allow iterative fixed-point computations to be expressed directly using recursive (circular) equations. We demonstrate how the combined formalism, Circular Reference Attributed Grammars (CRAGs), can take advantage of both these strengths, making it possible to express solutions to many problems in an easy way. We exemplify with the specification and computation of the nullable, first, and follow sets used in parser construction, a problem which is highly recursive and normally programmed by hand using an iterative algorithm. We also present a general demand-driven evaluation algorithm for CRAGs and some optimizations of it. The approach has been implemented and experimental results include computations on a series of grammars including Java 1.2. We also revisit some of the classical examples of CAGs and show how their solutions are facilitated by CRAGs.
机译:本文介绍了参考属性语法(RAG)和圆形属性语法(CAG)的组合。尽管RAG允许直接和轻松地指定非本地相关信息,但CAG允许使用递归(圆形)方程式直接表示迭代定点计算。我们演示了组合形式主义,即循环引用属性语法(CRAG)如何利用这两个优点,从而可以轻松地表达许多问题的解决方案。我们以解析器构造中使用的可为空,第一和跟随集的规范和计算为例,该问题是高度递归的,通常使用迭代算法手动编程。我们还提出了一种针对CRAG的通用需求驱动评估算法,并对它进行了一些优化。该方法已经实现,实验结果包括对一系列语法(包括Java 1.2)的计算。我们还回顾了CAG的一些经典示例,并展示了CRAG如何促进其解决方案。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号